﻿using System;
using System.ServiceModel;

namespace OCXS.OCXSServiceLibrary.OPCXMLDA10 {

    [MessageContract(
        WrapperName = "GetPropertiesResponse", 
        WrapperNamespace = "http://opcfoundation.org/webservices/XMLDA/1.0/", 
        IsWrapped = true)]
    public class GetPropertiesResponse {

        [MessageBodyMember(Name = "GetPropertiesResult", Order = 0)]
        public OCXS.OCXSServiceLibrary.OPCXMLDA10.ReplyBase GetPropertiesResult;

        [MessageBodyMember(Name = "PropertyLists", Order = 1)]
        public PropertyReplyList[] PropertyLists;

        [MessageBodyMember(Name = "Errors", Order = 2)]
        public OPCError[] Errors;

        public GetPropertiesResponse() {
        }

        public GetPropertiesResponse(OCXS.OCXSServiceLibrary.OPCXMLDA10.ReplyBase GetPropertiesResult, PropertyReplyList[] PropertyLists, OPCError[] Errors) {
            this.GetPropertiesResult = GetPropertiesResult;
            this.PropertyLists = PropertyLists;
            this.Errors = Errors;
        }
    }
}
